package com.qyer.commons.report;/**
 * User: Z J Wu Date: 2016/04/11 Time: 17:22 Package: com.qyer.commons.report
 */

import java.util.concurrent.LinkedBlockingQueue;

@Deprecated
public class ReporterQueue<T> {

  public ReporterQueue() {
  }

  private LinkedBlockingQueue<T> queue = new LinkedBlockingQueue<>();

  public void putToQueue(T t) throws InterruptedException {
    this.queue.put(t);
  }

  public T takeFromQueue() throws InterruptedException {
    return this.queue.take();
  }
}
